package com.bipbip.modelo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;

import org.springframework.context.annotation.Scope;

@Entity
@Table(name = "Solicitud")
@Scope("session")
public @Data class Suscripcion {

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;
	
	@Column(name = "titulo")
	private String titulo;
	
	@Column(name = "estado")
	private String estado;
	
	@Column(name = "Publicacion_id")	
	private Integer idPublicacion;
	
	@Column(name = "Usuario_id")
	private Integer idSolicitante;
	
	@Column(name = "isDeleted")
	private boolean isDeleted;
	
}
